package android.activities;

import android.app.Activity;
import android.controllers.CourseController;
import android.os.Bundle;
import android.tools.ExpandableListAdapter;
import android.widget.ExpandableListView;

public class CourseActivity extends Activity
{
	private CourseController _courseController;
	
	@Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.course);
        
        _courseController = new CourseController(CourseActivity.this);
        
        ExpandableListView ddlCourseSteps = (ExpandableListView)findViewById(R.id.course_ddlCourseSteps);
        ddlCourseSteps.setAdapter(new ExpandableListAdapter(CourseActivity.this));
        ddlCourseSteps.setOnChildClickListener(_courseController);
    }
}
